Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codeguruprofiler): ProfilingGroup #7895

Merged
merged 10 commits into from
May 26, 2020
Merged

Conversation

SeekerWing
Copy link
Contributor

fixes #6984 by creating L2 construct and functions to allow for policies to be assigned to execution roles.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: fa7a3e3
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 6ce569d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

eladb
eladb previously requested changes May 18, 2020
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty solid. See minor comments.

/**
* A name for the profiling group.
*/
readonly profilingGroupName: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be omitted? Can we produce a sensible default here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've changed the approach to the following, not an expert by any means, let me know your thoughts.

physicalName: props.profilingGroupName || Lazy.stringValue({ produce: () => this.node.uniqueId })

@@ -9,8 +9,28 @@
---
<!--END STABILITY BANNER-->

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance. Using machine learning algorithms, CodeGuru Profiler can help you find your most expensive lines of code and suggest ways you can improve efficiency and remove CPU bottlenecks. Amazon CodeGuru Profiler provides different visualizations of profiling data to help you identify what code is running on the CPU, see how much time is consumed, and suggest ways to reduce CPU utilization.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limit to 100 chars

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduced to 2 sentences, hope that's okay.

@eladb eladb changed the title feat(codeguruprofiler): setup L2 construct to create profiler group and setup functions to add publish/read policies to IGrantable feat(codeguruprofiler): ProfilingGroup May 18, 2020
@mergify mergify bot dismissed eladb’s stale review May 19, 2020 13:32

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 4d960d6
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot dismissed eladb’s stale review May 19, 2020 16:13

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: c2b160b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: af0b940
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: ddaa37b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@SeekerWing SeekerWing requested a review from eladb May 20, 2020 05:03
eladb
eladb previously requested changes May 20, 2020
packages/@aws-cdk/aws-codeguruprofiler/README.md Outdated Show resolved Hide resolved

constructor(scope: Construct, id: string, props: ProfilingGroupProps) {
super(scope, id, {
physicalName: props.profilingGroupName || Lazy.stringValue({ produce: () => this.node.uniqueId }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
physicalName: props.profilingGroupName || Lazy.stringValue({ produce: () => this.node.uniqueId }),
physicalName: props.profilingGroupName ?? Lazy.stringValue({ produce: () => this.node.uniqueId }),

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - are there any constraints on the profile group name that we should take into account when using unqiueId?

@mergify mergify bot dismissed eladb’s stale review May 20, 2020 17:12

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 386195c
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 5c4fea5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

eladb
eladb previously approved these changes May 21, 2020
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
…nd setup functions to add publish/read policies to IGrantable
@mergify mergify bot dismissed eladb’s stale review May 22, 2020 08:17

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 505db82
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@SeekerWing SeekerWing requested a review from eladb May 22, 2020 15:53
@mergify
Copy link
Contributor

mergify bot commented May 26, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented May 26, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 995088a into aws:master May 26, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: f5fc469
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

shivlaks added a commit that referenced this pull request Oct 14, 2020
L2 constructs were introduced in #7895 about 5 months ago.
We missed marking the module as experimental.

Updated stability and updated the banner in the README.
mergify bot pushed a commit that referenced this pull request Oct 14, 2020
)

L2 constructs were introduced in #7895 about 5 months ago.
We missed marking the module as experimental.

Updated stability and updated the banner in the README.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Code Guru Profiler Group creation and permissions
3 participants